Minor tidy.
authoremellor@ewan <emellor@ewan>
Wed, 28 Sep 2005 13:02:38 +0000 (14:02 +0100)
committeremellor@ewan <emellor@ewan>
Wed, 28 Sep 2005 13:02:38 +0000 (14:02 +0100)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomainInfo.py

index 21d365591c258b5369efb12133f9709658052b6c..45c0b2be44241a27daf7cd4d212f47d3a7f2f8c0 100644 (file)
@@ -615,7 +615,7 @@ class XendDomainInfo:
         if not reason in shutdown_reasons.values():
             raise XendError('invalid reason:' + reason)
         self.storeVm("control/shutdown", reason)
-        if not reason in ['suspend']:
+        if not reason == 'suspend':
             self.storeVm('xend/shutdown_start_time', time.time())